﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<CapaDeDominio.Instrumento>>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>
    <table>
        <tr>
            
            <th>Codigo</th>
            <th>Tipo</th>
            <th>Marca</th>
            <th>Modelo</th>
            <th>AnioFabricacion</th>
            <th>Caracteristicas</th>
            <th>Alquiler</th>
        </tr>
    <% foreach (var item in Model) { %>    
        <tr>
            <td style="display:none">
                <%: Html.ActionLink("Modificar", "Modificacion", new { Codigo = item.Codigo }) %> |
                <%: Html.ActionLink("Eliminar", "Eliminacion", new { Codigo = item.Codigo })%>
            </td>
            <td><%: item.Codigo %></td>
            <td><%: item.Tipo %></td>
            <td><%: item.Marca %></td>
            <td><%: item.Modelo %></td>
            <td><%: item.AnioFabricacion %></td>
            <td><%: item.Caracteristicas %></td>
            <td><%: String.Format("{0:F}", item.Alquiler) %>
</td>
        </tr>    
    <% } %>
    </table>
    <p>
        <%: Html.ActionLink("Crear", "Creacion") %>
    </p>
</asp:Content>




